<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        :target {
            background-color: #eeccdaa4;
        }
    </style>
</head>

<body>
    <p><a href="#new1">跳转至第一</a></p>
    <p><a href="#new2">跳转至第二</a></p>
    <p id="new1">hello</p>
    <p id="new2">world</p>
</body>

</html>